<?php

if ($this->pageCount == 1) {
	return;
}

// previous
echo "<div id='prev' class='acolor'>";
if (isset ( $this->previous )) {
	
	echo " <a class='paginate'".'href="' . $this->url ( array ('page' => $this->previous ) ) . '">';
	echo "<span class='prevnext'>";
	echo '&lt;';
	echo "</span>";
	echo '</a> ';

} else {
	echo "<span class='prevnext'>";
	echo '&lt;';
}
echo "</span>";
{
	foreach ( $this->pagesInRange as $page ) {
		if ($page != $this->current) {
			echo " <a class='paginate' " . 'href="' . $this->url ( array ('page' => $page ) ) . '">' . $page . '</a> ';
		} else {
			echo "<span class='current'>";
			echo ' ', $page, ' ';
			echo "</span>";
		
		}
	}

}

// next
if (isset ( $this->next )) {
	echo " <a class='paginate' ".' href="' . $this->url ( array ('page' => $this->next ) ) . '">';
	echo "<span class='prevnext'>";
	echo '&gt;';
	echo "</span>";
	echo '</a>';
} else {
	echo "<span class='prevnext'>";
	echo '&gt;';
	echo "</span>";
}
echo "</div>";
?>